import http from '@/utils/http'

// 获取省份
export const getProvinces = () => {
	return http.get(`/knowledge/app/provinceList`)
}

// 获取城市
export const getCitys = (provinceId) => {
	return http.get(`/knowledge/app/cityList?provinceId=${provinceId}`)
}

// 保存个人资料
export const saveUserInfos = (params) => {
	return http.post(`/knowledge/app/saveUserInfos`, params)
}

// 保存用户头像
export const saveUserAvatar = (params) => {
	return http.post(`/knowledge/app/saveUserAvatar`, params)
}

// 获取个人资料
export const getUserInfo = (params) => {
	return http.get(`/knowledge/app/getUserInfo`, params)
}

// 保存我的认证
export const saveUserAuth = (params) => {
	return http.post(`/knowledge/app/saveUserAuth`, params)
}

// 获取认证信息
export const getUserAuth = () => {
	return http.get(`/knowledge/app/getUserAuth`)
}